package entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @Author: yangsen
 * @Date: 2020/6/16 16:32
 */
@Data
public class ResultUtil implements Serializable {
    Integer code;
    String msg;
    Map result;
    public static ResultUtil success(){
        ResultUtil resultUtil = new ResultUtil();
        resultUtil.setCode(200);
        resultUtil.setMsg("success");
        return resultUtil;
    }
    public static ResultUtil faild(){
        ResultUtil resultUtil = new ResultUtil();
        resultUtil.setCode(501);
        resultUtil.setMsg("faild");
        return resultUtil;
    }
}
